[%if count($array)>0 || count($array_top)>0 %]
<table class="table table-hover" id="tablelist">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_80">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center table_width_80">[%pack:public_pack-espcms_lable_pid_name%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_type_typename%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_title%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_styleid%]</th>
			<th class="text-center">[%pack:public_pack-espcms_pic%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_ishtml%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_iswap%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_isclass_name%]</th>
			[%if @this->power('editSpecialCatalog')%]
			<th class="text-center table_width_200">[%pack:public_pack-espcms_lable_control_name%]</th>
			[%/if%]
		</tr>
	</thead>
	<tbody id="sortable">
		[%forlist from=$array key=i%]
		<tr data-tt-id="[%$array[i].pathid%]" data-tt-parent-id="[%$array[i].parentpath%]" data-id="[%$array[i].tid%]" class="selecticon">
			<td class="text-center">
				[%if $array[i].parentpath==0%]
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].tid%]"/>
				[%/if%]
			</td>
			<td class="text-center">[%$array[i].tid%]</td>
			<td class="text-center espcms_celerity kill_copy" edit_id_attr="tid" edit_id="[%$array[i].tid%]" edit_val="[%$array[i].pid%]" edit_att="pid" edit_validation="^[\d]+$">[%$array[i].pid%]</td>
			<td class="text-left">[%$array[i].typename%]<input type="hidden" name="tid[]" class="tid" value="[%$array[i].tid%]"></td>
			<td class="text-center iconname">[%if $array[i].modelname%][%$array[i].modelname%][%else%]/[%/if%]</td>
			<td class="text-center">
				[%if $array[i].styleid==1%]<span class="text-zhishe">[%pack:article_pack-espcms_article_styleid_1%]</span>[%/if%]
				[%if $array[i].styleid==2%]<span class="text-ashes">[%pack:article_pack-espcms_article_styleid_2%]</span>[%/if%]
				[%if $array[i].styleid==3%]<span class="text-red">[%pack:article_pack-espcms_article_styleid_3%]</span>[%/if%]
				[%if $array[i].styleid==4%]<span class="text-green">[%pack:article_pack-espcms_article_styleid_4%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].typepic!=''%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].pageclass==0%]<span class="text-ashes">[%pack:article_pack-espcms_article_ishtml_0%]</span>[%/if%]
				[%if $array[i].pageclass==1%]<span class="text-green">[%pack:article_pack-espcms_article_ishtml_1%]</span>[%/if%]
				[%if $array[i].pageclass==2%]<span class="text-red">[%pack:article_pack-espcms_article_ishtml_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].iswap==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isclass==1%]
				<span class="espcms_icon_fa espcms_icon_fa-unlock-alt text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-lock text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			[%if @this->power('addArticleType') || @this->power('editArticleType') || @this->power('delArticleType') %]
			<td class="text-center kill_copy">
				[%if $array[i].styleid<3%]
				<button type="button" class="btn btn-green btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-desktop" tab_name="[%pack:article_pack-espcms_article_main_button_view%]（[%$array[i].typename%]）" tab_url="[%$array[i].view%]">[%pack:botton_pack-espcms_botton_view%]</button>
				[%/if%]
				<div class="btn-group">
					<button type="button" class="btn btn-addblue btn-padding10 dropdown-toggle btn-xs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">[%pack:article_pack-espcms_article_type_button_last%] <span class="caret"></span></button>
					<ul class="dropdown-menu list_menu">
						[%if $array[i].styleid!=3%]
							[%if @this->power('addArticleType')%]
							<li><a class="espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:article_pack-espcms_article_type_button_add_type%]" tab_close="false" tab_url="[%$array[i].add%]"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_add_type%]</a></li>
							<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:article_pack-espcms_article_type_button_add_base%]" tab_close="false" tab_url="[%$array[i].addbase%]"><span class="espcms_icon_fa espcms_icon_fa-file-text-o" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_add_base%]</a></li>
							<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-chain" tab_name="[%pack:article_pack-espcms_article_type_button_add_link%]" tab_close="false" tab_url="[%$array[i].addlink%]"><span class="espcms_icon_fa espcms_icon_fa-chain" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_add_link%]</a></li>
							<li role="separator" class="divider"></li>
							[%/if%]
							[%if $array[i].styleid!=4%]
								[%if @this->power('editArticle') && $array[i].styleid==2%]
								<li><a class="info_resort" data-id="[%$array[i].tid%]"><span class="espcms_icon_fa espcms_icon_fa-sort-alpha-asc" aria-hidden="true"></span>[%pack:botton_pack-espcms_botton_reset_sort%]</a></li>
								[%/if%]
								[%if @this->power('editArticleType')%]
								<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-exchange" tab_name="[%pack:article_pack-espcms_article_type_button_shift%]" tab_close="false" tab_url="[%$array[i].shift%]"><span class="espcms_icon_fa espcms_icon_fa-exchange" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_shift%]</a></li>
								<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-retweet" tab_name="[%pack:article_pack-espcms_article_type_button_synchronization%]" tab_close="false" tab_url="[%$array[i].syn%]"><span class="espcms_icon_fa espcms_icon_fa-retweet" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_synchronization%]</a></li>
								<li role="separator" class="divider"></li>
								[%/if%]
							[%/if%]
						[%/if%]
						[%if @this->power('editArticleType')%]
							[%if $array[i].isclass==1%]
							<li><a class="info_set" data-id="[%$array[i].tid%]" set-field="isclass" set-value="0" set-message="[%pack:article_pack-espcms_article_type_button_close%][%pack:article_pack-espcms_article_type_set_message_str%]"><span class="espcms_icon_fa espcms_icon_fa-lock" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_close%]</a></li>
							[%else%]
							<li><a class="info_set" data-id="[%$array[i].tid%]" set-field="isclass" set-value="1" set-message="[%pack:article_pack-espcms_article_type_button_open%][%pack:article_pack-espcms_article_type_set_message_str%]"><span class="espcms_icon_fa espcms_icon_fa-unlock-alt" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_open%]</a></li>
							[%/if%]
							<li><a class="info_set" data-id="[%$array[i].tid%]" set-field="ismenu" set-value="1" set-message="[%pack:article_pack-espcms_article_type_button_ismenu_1%][%pack:article_pack-espcms_article_type_set_message_str%]"><span class="espcms_icon_fa espcms_icon_fa-eye" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_ismenu_1%]</a></li>
							[%if $array[i].iswap==1%]
							<li><a class="info_set" data-id="[%$array[i].tid%]" set-field="iswap" set-value="0" set-message="[%pack:article_pack-espcms_article_type_button_iswap_0%][%pack:article_pack-espcms_article_type_set_message_str%]"><span class="espcms_icon_fa espcms_icon_fa-remove" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_iswap_0%]</a></li>
							[%else%]
							<li><a class="info_set" data-id="[%$array[i].tid%]" set-field="iswap" set-value="1" set-message="[%pack:article_pack-espcms_article_type_button_iswap_1%][%pack:article_pack-espcms_article_type_set_message_str%]"><span class="espcms_icon_fa espcms_icon_fa-check" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_iswap_1%]</a></li>
							[%/if%]
						[%/if%]
						[%if @this->power('delArticleType')%]
						<li role="separator" class="divider"></li>
						<li><a class="info_del" data-id="[%$array[i].tid%]"><span class="espcms_icon_fa espcms_icon_fa-trash-o" aria-hidden="true"></span>[%pack:article_pack-espcms_article_type_button_del%]</a></li>
						[%/if%]
					</ul>
				</div>
				[%if @this->power('editArticleType')%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:article_pack-espcms_article_type_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
			</td>
			[%/if%]
		</tr>
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]